from openpyxl import load_workbook
from openpyxl.styles import Alignment
workbook = load_workbook('F:\\python\\第5章\\出库表.xlsx')
worksheet = workbook['Sheet1']
cell = worksheet['A3']
cell.alignment = Alignment(horizontal='right', vertical='center')
workbook.save('F:\\python\\第5章\\出库表3.xlsx')
